package com.jsyso.weixin.utils;

import java.util.HashMap;
import java.util.Map;

public class Params {

    private Map<String, String> data = new HashMap<String, String>(8);
    private Params() {}

    public static Params create() {
        return new Params();
    }

    public static Params create(String key, String value) {
        return create().put(key, value);
    }

    public Params put(String key, String value) {
        data.put(key, value);
        return this;
    }

    public Map<String, String> getData() {
        return data;
    }
    
    @Override
    public String toString() {
    	return this.data.toString();
    }
}
